<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#dateinbegin" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#dateinend" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<form action="/admini/manageuser/account" method="get" style="margin:0px">
<div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;">
<label for="quick">快速搜索：</label><input type="text" id="quick" name="quick" value="<?php echo $this->quick;?>" />
<label for="starttime">创建时间：</label><input type="text" id="dateinbegin" name="dateinbegin"  value="<?php echo $this->dateinbegin;?>"/>
<label for="endtime">--</label><input type="text" id="dateinend" name="dateinend"  value="<?php echo $this->dateinend;?>"/>
<input type="hidden" id="status" name="status" value="<?php echo $this->status;?>" />
<input type="submit" id="queryButton" value="查询"/>
</div>
</form>


<div class="dataTable">
        <table>                                               
            <tr>
                <th class="w1" width="10%">ID</th>
                <th class="w2" width="10%">所属用户</th>
                <th class="w3" width="10%">仓库号</th>
                <th class="w4" width="10%">类型</th>
                <th class="w5" width="10%">创建日期</th>
                <th class="w6" width="10%">金额</th>
                <?php if($this->status == 2){ ?>
                    <th class="w7" width="10%">变化前成长值</th>
                    <th class="w8" width="10%">变化后成长值</th>
                <?php } else { ?>
                    <th class="w7" width="10%">变化前金额</th>
                    <th class="w8" width="10%">变化后金额</th>
                <?php } ?>
                <th class="w9" width="10%">关联ID</th>
                <th class="w10" width="10%">说明</th>
            </tr>  
        
            <?php if($this->Accountlist)
            {
                foreach ($this->Accountlist as $Item) {?>
                <tr>
                <td class="w1" nowrap><?php echo $Item->id;?></td>
                <td class="w2" nowrap><?php echo $Item->username;?></td>
                <td class="w3" nowrap><?php echo ($Item->bystoreno!=null?$Item->bystoreno->storeno:"");?></td>
                <td class="w4" nowrap><?php echo $Item->typename;?></td>
                <td class="w5" nowrap><?php echo $Item->dateCreated;?></td>
                <td class="w6" nowrap><?php echo $Item->afterMoney-$Item->beforeMoney;?></td>
                <?php if($this->status == 2){ ?>
                    <td class="w7"><?php echo $Item->beforeScore;?></td>
                    <td class="w8" nowrap><?php echo $Item->afterScore;?></td>
                <?php } else { ?>
                    <td class="w7"><?php echo $Item->beforeMoney;?></td>
                    <td class="w8" nowrap><?php echo $Item->afterMoney;?></td>
                <?php } ?>
                <td class="w9" nowrap><?php echo $Item->relaseId;?></td>
                <td class="w10" nowrap><?php echo $Item->comment;?></td>
   
                </tr>
                <?php                 
                }                
            }?>
        </table>
    </div>                
    <div class="toolbar" >
        <?php //echo $this->partial('paging.phtml', array("pages" => $this->Accounts,"pamas"=>"username=".$this->username."&storeno=$this->storeno&dateinbegin=$this->dateinbegin&dateinend=$this->dateinend")); ?>
        <?php echo $this->partial('paging.phtml', array("pages" => $this->Accounts,"pamas"=>"quick=".$this->quick."&dateinbegin=$this->dateinbegin&dateinend=$this->dateinend&status=$this->status")); ?>
    </div>